package com.jinglin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jinglin.pojo.Article;
import org.apache.ibatis.annotations.Select;

public interface ArticleMapper extends BaseMapper<Article> {

    @Select("select count(*) from article where cate_id = #{cate_id}")
    Integer getArticleByCategory(String cate_id);
    @Select("select * from article ")
    Integer getRecommendArticle(Integer number);
}
